/**
 * 
 */
package it.unical.canonaco.rende.igpe.game.cbv.datastructure;

/**
 * @author Massimo Canonaco
 *
 */
public class UtilityInteger 
{
	/** */
	private int value;
	
	/** */
	public UtilityInteger(){}
	
	/** */
	public UtilityInteger(int value)
	{
		this.value = value;
	}

	/**
	 * @return the value
	 */
	public int getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(int value) {
		this.value = value;
	}
	
	@Override
	public boolean equals(Object obj) 
	{
//		return super.equals(obj);
		boolean returnValue = false;
		if(obj instanceof Integer)
		{
			returnValue = (value == ((Integer)obj).intValue());
		}
		
		return returnValue;
	}
}
